<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        <div class="layui-form-item">
            <label class="layui-form-label">所属商圈</label>
            <div class="layui-input-block">
                <select name="district_id" lay-verify="required" >
                    <option value='0' selected>无商圈</option>
                    {foreach $district as $k=>$v}
                    <option value='{$v.id}' {if $row.district_id==$v['id'] } selected="" {/if} > {$v.name}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">店铺名称</label>
            <div class="layui-input-block" >
                <input type="text" name="name" class="layui-input" autocomplete="off" lay-verify="required"
                       placeholder="请输入店铺名称" value="{$row.name|default=''}" disabled>
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>

<script>
    var districtId = '{$row.district_id}';
</script>